package org.myosw.solr;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;

import com.myosw.util.Base64Coder;

/**
 *  页面信息
 * @author 陈磊
 *
 */
public class PageInfo 
{
	 private String id;//id标号
	 private String title;//页面标题
	 private String content;//页面内容
	 private String url;//页面的url
	 private long _version_;//版本
	 private Date tstamp;//时间
	 
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public long get_version_() {
		return _version_;
	}
	public void set_version_(long _version_) {
		this._version_ = _version_;
	}
	public Date getTstamp() {
		return tstamp;
	}
	public void setTstamp(Date tstamp) {
		this.tstamp = tstamp;
	}
	
	public String getSafeUrl() {
		return Base64Coder.encodeBase64Safe(url);
		
	}
	 


}
